package com.gxa.setting.controller;

import com.gxa.common.base.RespResult;
import com.gxa.setting.service.SetServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/setService")
public class SetServiceController {

    @Autowired
    private SetServiceService setService;

    /**
     * 分页查询服务类型列表
     * @param currentPage
     * @param pageSize
     * @return
     */
    @GetMapping("/serviceTypeList")
    @ResponseBody
    public RespResult serviceTypeList(Integer currentPage,Integer pageSize){
        return null;
    }

    public RespResult addService(String serviceTypeName,String[] serviceNames){
        return null;
    }


    /**
     * 根据服务类型查找set服务
     * @return
     */
    @GetMapping("/findSetService")
    public RespResult findSetService(Integer id){
        return setService.findSetService(id);
    }

}
